<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> 
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="/Public/js/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/index.css"> 
<title>宠物领养网后台</title>
</head>
	<body>

<div class="admin_top">用户列表</div>

<div class="list">
    <div>全选</div>
    <div>宠物名字</div>
    <div>联系方式</div>
    <div>宠物信息</div>
</div>

   <?php if(is_array($userinfo)): $i = 0; $__LIST__ = $userinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="list">
    <div><input type="checkbox" val=<?php echo ($vo["id"]); ?>></div>
    <div><?php echo ($vo["petname"]); ?></div>
    <div><?php echo ($vo["tel"]); ?></div> 
    <div><?php if($vo["pettype"] == 1): ?>狗狗<?php endif; if($vo["pettype"] == 2): ?>猫猫<?php endif; if($vo["pettype"] == 3): ?>兔子<?php endif; if($vo["pettype"] == 4): ?>老鼠<?php endif; if($vo["pettype"] == 5): ?>其他<?php endif; echo ($vo["daynum"]); ?>天 </div><!-- //宠物1狗狗2猫猫3兔子4老鼠5其他 -->
    </div><?php endforeach; endif; else: echo "" ;endif; ?>
<div class="clear"></div>
<div class="select_seccess">选择完成</div>

<script type="text/javascript">
  $('.select_seccess').click(function(){
     var str_id='';
     $('.list').each(function(){
         if($(this).find('input').is(':checked')){
             str_id+=$(this).find('input').attr('val')+',';
         }
     })
     location.href='send_messgs/id/'+str_id;
  })
</script>
</body>
</html>